home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 May: Tool Chest / Developer CD Series Tool Chest (Apple Computer)(May 1999).iso / Tool Chest / Development Kits / MPW Related / DTS MPW Goodies / UserStartup•Goodies < prev    next >
Encoding:
Text File  |  1990-09-14  |  5.1 KB  |  2 lines  |  [TEXT/MPS ]

  1. #
  2. # UserStartup•Goodies
  3. #
  4. # Initializes the goodies package and sets up menus
  5. #
  6. # IMPORTANT NOTE:
  7. #
  8. #    You MUST edit this file to match your configuration BEFORE
  9. # installing this package.
  10. #
  11. # MPW Goodies Package
  12. # Copyright Apple Computer, Inc. 1988. All Rights Reserved.
  13. # Macintosh Developer Technical Support.
  14. # May be distributed freely but not sold.
  15. #
  16.  
  17. ############################################################################################
  18. # This section needs to be modified to work
  19. ############################################################################################
  20.  
  21. # Set this to be the folder where you keep the Goodies files.
  22. # By default, this is defined to be inside of the MPW
  23. # folder. CHANGE IT IF YOU DIDN'T PUT THE GOODIES FOLDER INSIDE
  24. # THE {MPW} FOLDER.
  25.     Set Goodies "{MPW}Goodies:"
  26.     Export Goodies
  27.  
  28. # look in Goodies for commands and scripts
  29. # If you want to be able to run applications like ResEdit and Font/DA Mover
  30. # from the Key Menu (Command-Key symbol), you should add them to the end of this
  31. # list. Don't forget the comma!
  32.     Set Commands "{Goodies},{Commands}"
  33.     Export Commands
  34.  
  35. # Projector stuff
  36.     Set UserInitials "PUT YOUR INITIALS HERE"
  37.     Set Writers "PUT NAMES OF ALL SOFTWARE AUTHORS HERE"
  38.     If "{User}" == ""
  39.         Set User "PUT YOUR FULL NAME HERE"
  40.     End
  41.     Export UserInitials
  42.     Export Writers
  43.     Export User
  44.  
  45. # Set to the folder containing your source code
  46.     Set SourceDir    "PUT SOURCE FOLDER HERE, OR SET TO {MPW}"
  47.     Export            SourceDir
  48.  
  49. # MacApp 2.0's MABuild allows a large set of flags. We have defined some
  50. # handy flag handlers in the MyBuildMenu script. These variables control the
  51. # initial settings of these variables
  52.     Set MADebuggingFlag        1        # compile with MacApp debugging turned on
  53.     Set MASADEFlag            0        # compile with SADE symbols
  54.     Set MARunFlag            1        # run application after build
  55.     Set MAAutoBuildFlag        0        # autobuild MacApp library
  56.     Set MACPlusLoadFlag        0        # use C++ load files
  57.     Set MACPlusSupportFlag    0        # require C++ libraries
  58.     Set MAMacIIFlag            0        # require 68020, FPU, and ColorQD
  59.     Set MASystem6Flag        1        # require system 6 or better
  60.  
  61. # We set this to be the directory where an older version of MPW lives
  62. # (e.g., MPW 2.0.2, MPW 3.0b1, etc). I use MPW 3.0 and a newer,
  63. # experimental version, so my old MPW is actually MPW 3.0. You
  64. # will probably want to set this to something else.
  65.     Set OldMPWPath "PUT PATHNAME FOR OLD MPW FOLDER HERE, OR LEAVE IT BLANK"
  66.     Export OldMPWPath
  67.  
  68. # We set default font and fontsize variables here, since we use them in
  69. # a command below. You can set these to whatever you prefer, but be sure
  70. # they are set to something. You can comment these lines out if you set
  71. # these variables up in your UserStartup file.
  72.     Set Font        Courier
  73.     Set FontSize    10
  74.  
  75. ############################################################################################
  76. # You probably won't need to modify anything below here.
  77. ############################################################################################
  78.  
  79. # A handy alias to get files sorted by date, most recent first
  80. Alias lsd "Files -n -x m | Sort -quote -r -d -f '4,2,3,7,5,6,1' -fs ' /:' ≥ Dev:Null"
  81.  
  82. # Set variable for list of directories containing projects
  83.     Set ProjDirList "{Goodies}ProjectFolders"
  84.     Export            ProjDirList
  85.  
  86. # list of invisible characters: edit with Show Invisibles on
  87.     Set InvisibleSet '
  88. ⁄€‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ'
  89.  
  90. # set up path for old MPW first...
  91.     Set OldCommands "{OldMPWPath}Tools:,{OldMPWPath}Scripts:,{Commands}"
  92.     Export OldCommands
  93.  
  94. # Set up our project hierarchy
  95.     Execute InitProjector
  96.  
  97. # Setup Edit Menu
  98.     AddMenu Edit '(-' ''
  99.  
  100.     # Justify a selected block of text with default margins (of 0 and 60).
  101.     AddMenu Edit 'Justify/Δ'    ∂
  102.         'Justify "{Active}".§ > "{MPW}"MPW.Justify;        ∂
  103.          Catenate "{MPW}"MPW.Justify > "{Active}".§;    ∂
  104.          Delete "{MPW}"MPW.Justify'
  105.     
  106.     # Justify a selected block of text with a hanging indent
  107.     AddMenu Edit 'Hanging Indent/˙'    ∂
  108.         'Justify -l `Request -d "0,4" What indent do you want.` "{Active}".§ > "{MPW}"MPW.Justify;        ∂
  109.          Catenate "{MPW}"MPW.Justify > "{Active}".§;    ∂
  110.          Delete "{MPW}"MPW.Justify'
  111.     
  112.     # Justify a selected block of text adding a ∂ to each line
  113.     # Useful for contining lines in makefiles or shell scripts
  114.     AddMenu Edit "Continued/∂∂"    ∂
  115.         'Justify -e "∂∂" -l `Request -d "0,4" What indent do you want.` "{Active}".§ > "{MPW}"MPW.Justify;        ∂
  116.          Catenate "{MPW}"MPW.Justify > "{Active}".§;    ∂
  117.          Delete "{MPW}"MPW.Justify'
  118.     
  119.     ## Join this line and the next
  120.     AddMenu Edit '(-' ''
  121.     AddMenu Edit 'Join' 'Replace /[∂t ]*∂n[∂t ]*/ "" "{Active}"'
  122.     AddMenu Edit 'Join Space' 'Replace /[∂t ]*∂n[∂t ]*/ " " "{Active}"'
  123.  
  124.     Set TemporaryFile "{SystemFolder}MPW—Scratch"
  125.     Delete -i "{TemporaryFile}"
  126.  
  127.     AddMenu Edit '(-' ''
  128.     AddMenu Edit 'Default Font/1' 'Format -f "{Font}" -s "{FontSize}" "{Active}"'
  129.  
  130. # modify the find menu
  131.     AddMenu Find (- ''
  132.     AddMenu Find 'Find Invisible/ƒ' 'Find /[{InvisibleSet}]/ "{Active}"'
  133.     AddMenu Find '(-' ''
  134.     AddMenu Find 'Set Mark/ ' 'Mark -y § theMark "{Active}"'
  135.     AddMenu Find 'Goto Mark/¬' 'Find theMark "{Active}"'
  136.  
  137. # create the lookup menu
  138.     Execute LookupMenu
  139.  
  140. # create the project menu
  141.     Execute ProjectMenu
  142.  
  143. # Create the build menu
  144.     Execute MyBuildMenu
  145.  
  146. # Create the CommandKey menu
  147.     Execute KeyMenu
  148.  
  149.